# 列表生成器
if __name__ == '__main__':
    sampleList = [x * x for x in range(10)]
    print(sampleList)

    # 生成器
    generator = (x * x for x in range(10))
    print(generator)
    for n in generator:
        print(n)

    # TODO 斐波拉契数列